setStrokeFill

abstract fun setStrokeFill(block: DesignBlock, fill: DesignBlock?)

Paints the stroke of the given block with a fill block, for example a gradient, instead of the stroke color. Color, gradient and stripe fills are supported; image, video and pixel stream fills are rejected. Note: The previous stroke fill block is not destroyed automatically. The fill block may not be the block's own fill. A stroke color with alpha 0 still hides the stroke; the fill's own colors set the opacity otherwise. Required scope: "stroke/change" Experimental: this API may change in a minor release.

Parameters

block

the block whose stroke should be painted. Graphic blocks and pages are supported.

fill

the fill block, or null to paint the stroke with its color again.